<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
  var zhang={};
  zhang.name="鹏阳";
  zhang.age=20;
  zhang.sex="女";
  zhang.beautiful="very beautiful";
  zhang.home="唐县北罗镇西城子村";
console.log(zhang.name);
console.log(zhang.sex);
console.log(zhang.age);
console.log(zhang.beautiful);
console.log(zhang.home);



var zhu=new Object();
zhu.name="燕红";
zhu.age="20";
zhu.sex="女";
zhu.beautiful="very beautiful" ;
zhu.home="曲阳县东旺乡高门屯村";
console.log(zhu.name);
console.log(zhu.sex);
console.log(zhu.age);
console.log(zhu.beautiful);
console.log(zhu.home);









var number="12456215";
console.log(number.indexOf("1"));
console.log(number.lastIndexOf("1"));


 var str="我是一名大专班的学生";
  console.log(str.startsWith("我"));


  var str="张三上课好好学习";
  var str2="公然打游戏";
console.log(str.replace("好好学习",str2));
  </script>
</html>